<template>
  <div class="head">
    <div class="tab">
      <van-icon
        name="arrow-left"
        size="40"
        color="white"
        @click="onClickLeft"
      />
      <p>结婚</p>
    </div>
    <div class="tab-Mybl">
      <p>我的伴侣</p>
      <van-icon name="close" size="40" color="#9A9A9A" class="x" />
      <div class="tab-deploy">
        <div>
          <img src="../../../assets/img/home/Home-end/bighead(1).png" alt="" />
          <span>半糖</span>
        </div>
        <span>PK</span>
        <div>
          <img src="../../../assets/img/home/Home-end/bighead(1).png" alt="" />
          <span>半糖</span>
        </div>
      </div>
    </div>
    <p class="explain">求婚对象</p>
    <div class="tab-end"></div>
    <van-datetime-picker
      v-model="currentDate"
      type="date"
      title="选择年月日"
      :min-date="minDate"
      :max-date="maxDate"
    />
  </div>
</template>

<script>
export default {
  data() {
    return {
      minDate: new Date(2020, 0, 1),
      maxDate: new Date(2025, 10, 1),
      currentDate: new Date(2021, 0, 17),
    };
  },
  methods: {
    onClickLeft() {
      this.$router.go(-1);
    },
  },
};
</script>

<style lang='scss' scoped>
.head {
  .tab {
    width: 382px;
    height: 48px;
    line-height: 48px;
    margin: 50px 0 0 26px;
    display: flex;
    justify-content: space-between;
    p {
      font-size: 32px;
      color: white;
    }
  }
  .tab-Mybl {
    width: 670px;
    height: 244px;
    border-radius: 16px;
    margin: 58px auto 0;
    padding-top: 58px;
    position: relative;
    background-color: #939393;
    p {
      width: 196px;
      height: 64px;
      border-radius: 32px;
      font-size: 28px;
      text-align: center;
      line-height: 64px;
      position: absolute;
      left: 236px;
      top: -20px;
      color: #ffffff;
      background-color: #bebebe;
    }
    .x {
      position: absolute;
      top: 10px;
      right: 10px;
    }
    .tab-deploy {
      width: 442px;
      height: 172px;
      margin: 0 auto;
      display: flex;
      justify-content: space-around;
      align-items: center;
      span {
        font-size: 40px;
      }
      img {
        width: 120px;
        height: 120px;
        border-radius: 50%;
      }
      div {
        display: flex;
        flex-direction: column;
        align-items: center;
        span {
          font-size: 26px;
          color: #bebebe;
        }
      }
    }
  }
  .explain {
    font-size: 32px;
    margin: 74px 0 0 40px;
    color: #9a9a9a;
  }
  .tab-end {
    width: 670px;
    height: 316px;
    margin: 28px 0 0 40px;
    background-color: #939393;
  }
}
</style>